package com.atguigu.lease.web.app.mapper;

import com.atguigu.lease.model.entity.RoomInfo;
import com.atguigu.lease.web.app.vo.room.RoomDetailVo;
import com.atguigu.lease.web.app.vo.room.RoomItemVo;
import com.atguigu.lease.web.app.vo.room.RoomQueryVo;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

/**
 * @author xiongkunYang
 * @description 针对表【room_info(房间信息表)】的数据库操作Mapper
 * @createDate 2025-04-19 22:27:34
 * @Entity com.atguigu.lease.model.entity.RoomInfo
 */
@Mapper
public interface RoomInfoMapper extends BaseMapper<RoomInfo> {


    IPage<RoomItemVo> selectRoomItemVoPageByQuery(@Param("page") Page<RoomItemVo> page,
                                                  @Param("queryVo") RoomQueryVo queryVo);

    IPage<RoomItemVo> selectRoomItemVoPageByApartmentId(@Param("page") Page<RoomItemVo> page,
                                                        @Param("apartmentId") Long apartmentId);

    RoomDetailVo selectDetailVoById(Long id);

}




